<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: I2C Master Status</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__scb__i2c__macros__master__status.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle">
<div class="title">I2C Master Status<div class="ingroups"><a class="el" href="group__group__scb.html">SCB          (Serial Communication Block)</a> &raquo; <a class="el" href="group__group__scb__i2c.html">I2C (SCB)</a> &raquo; <a class="el" href="group__group__scb__i2c__macros.html">Macros</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p>Macros to check current I2C master status returned by <a class="el" href="group__group__scb__i2c__master__high__level__functions.html#ga652a3b9da6db2424fed62c28c6347ef3">Cy_SCB_I2C_MasterGetStatus</a> function. </p>
<p>Each I2C master status is encoded in a separate bit, therefore multiple bits may be set to indicate the current status. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga412fef33336fb22c95f342ccf2485a0a"><td class="memItemLeft" align="right" valign="top"><a id="ga412fef33336fb22c95f342ccf2485a0a"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__scb__i2c__macros__master__status.html#ga412fef33336fb22c95f342ccf2485a0a">CY_SCB_I2C_MASTER_BUSY</a>&#160;&#160;&#160;(0x00010000UL)</td></tr>
<tr class="memdesc:ga412fef33336fb22c95f342ccf2485a0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The master is busy executing operation started by <a class="el" href="group__group__scb__i2c__master__high__level__functions.html#ga83185adeefa83640ac09852c9d6cf426">Cy_SCB_I2C_MasterRead</a> or <a class="el" href="group__group__scb__i2c__master__high__level__functions.html#ga91f7a32d2a20cf3deebe01cef8d9d000">Cy_SCB_I2C_MasterWrite</a>. <br /></td></tr>
<tr class="separator:ga412fef33336fb22c95f342ccf2485a0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaebe0539afe94d57233a96d9e0b81ab83"><td class="memItemLeft" align="right" valign="top"><a id="gaebe0539afe94d57233a96d9e0b81ab83"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__scb__i2c__macros__master__status.html#gaebe0539afe94d57233a96d9e0b81ab83">CY_SCB_I2C_MASTER_WR_IN_FIFO</a>&#160;&#160;&#160;(0x00020000UL)</td></tr>
<tr class="memdesc:gaebe0539afe94d57233a96d9e0b81ab83"><td class="mdescLeft">&#160;</td><td class="mdescRight">All Write data has been loaded into the TX FIFO. <br /></td></tr>
<tr class="separator:gaebe0539afe94d57233a96d9e0b81ab83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadcc535a3bcb0f43774492651f562a4d4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__scb__i2c__macros__master__status.html#gadcc535a3bcb0f43774492651f562a4d4">CY_SCB_I2C_MASTER_ADDR_NAK</a>&#160;&#160;&#160;(0x00100000UL)</td></tr>
<tr class="memdesc:gadcc535a3bcb0f43774492651f562a4d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">The slave NACKed the address.  <a href="#gadcc535a3bcb0f43774492651f562a4d4">More...</a><br /></td></tr>
<tr class="separator:gadcc535a3bcb0f43774492651f562a4d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa1bd4bdd1345d842eafe3df3d0ada328"><td class="memItemLeft" align="right" valign="top"><a id="gaa1bd4bdd1345d842eafe3df3d0ada328"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__scb__i2c__macros__master__status.html#gaa1bd4bdd1345d842eafe3df3d0ada328">CY_SCB_I2C_MASTER_DATA_NAK</a>&#160;&#160;&#160;(0x00200000UL)</td></tr>
<tr class="memdesc:gaa1bd4bdd1345d842eafe3df3d0ada328"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write completed before all bytes were sent (last byte was NAKed) <br /></td></tr>
<tr class="separator:gaa1bd4bdd1345d842eafe3df3d0ada328"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1ce9a39fdccdb63d47aea3cc048ffb90"><td class="memItemLeft" align="right" valign="top"><a id="ga1ce9a39fdccdb63d47aea3cc048ffb90"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__scb__i2c__macros__master__status.html#ga1ce9a39fdccdb63d47aea3cc048ffb90">CY_SCB_I2C_MASTER_ARB_LOST</a>&#160;&#160;&#160;(0x00400000UL)</td></tr>
<tr class="memdesc:ga1ce9a39fdccdb63d47aea3cc048ffb90"><td class="mdescLeft">&#160;</td><td class="mdescRight">The master lost arbitration, the transaction was aborted. <br /></td></tr>
<tr class="separator:ga1ce9a39fdccdb63d47aea3cc048ffb90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8eeded717a61477c8f06c59c00ef3f59"><td class="memItemLeft" align="right" valign="top"><a id="ga8eeded717a61477c8f06c59c00ef3f59"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__scb__i2c__macros__master__status.html#ga8eeded717a61477c8f06c59c00ef3f59">CY_SCB_I2C_MASTER_BUS_ERR</a>&#160;&#160;&#160;(0x00800000UL)</td></tr>
<tr class="memdesc:ga8eeded717a61477c8f06c59c00ef3f59"><td class="mdescLeft">&#160;</td><td class="mdescRight">The master detected an erroneous start or stop, the transaction was aborted. <br /></td></tr>
<tr class="separator:ga8eeded717a61477c8f06c59c00ef3f59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga39e4ddb9e5a4b11b74f10ea893bf44c2"><td class="memItemLeft" align="right" valign="top"><a id="ga39e4ddb9e5a4b11b74f10ea893bf44c2"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__scb__i2c__macros__master__status.html#ga39e4ddb9e5a4b11b74f10ea893bf44c2">CY_SCB_I2C_MASTER_ABORT_START</a>&#160;&#160;&#160;(0x01000000UL)</td></tr>
<tr class="memdesc:ga39e4ddb9e5a4b11b74f10ea893bf44c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">The master transaction was aborted and the slave transaction is on-going because the slave was addressed before the master generated a start. <br /></td></tr>
<tr class="separator:ga39e4ddb9e5a4b11b74f10ea893bf44c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="gadcc535a3bcb0f43774492651f562a4d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadcc535a3bcb0f43774492651f562a4d4">&#9670;&nbsp;</a></span>CY_SCB_I2C_MASTER_ADDR_NAK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CY_SCB_I2C_MASTER_ADDR_NAK&#160;&#160;&#160;(0x00100000UL)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The slave NACKed the address. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
